import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '会员ID',
    align: "center",
    dataIndex: 'memberId'
  },
  {
    title: '关联规则ID',
    align: "center",
    dataIndex: 'ruleId'
  },
  {
    title: '积分变动',
    align: "center",
    dataIndex: 'points'
  },
  {
    title: '交易时间',
    align: "center",
    dataIndex: 'transactionTime'
  },
  {
    title: '关联订单ID',
    align: "center",
    dataIndex: 'orderId'
  },
  {
    title: '交易描述',
    align: "center",
    dataIndex: 'description'
  },
];

// 高级查询数据
export const superQuerySchema = {
  memberId: {title: '会员ID',order: 0,view: 'text', type: 'string',},
  ruleId: {title: '关联规则ID',order: 1,view: 'number', type: 'number',},
  points: {title: '积分变动',order: 2,view: 'number', type: 'number',},
  transactionTime: {title: '交易时间',order: 3,view: 'datetime', type: 'string',},
  orderId: {title: '关联订单ID',order: 4,view: 'text', type: 'string',},
  description: {title: '交易描述',order: 5,view: 'text', type: 'string',},
};
